<div id="mem_menu">
<h1>会员中心</h1>	
{volist name="member_menu" id="mem_menu"}
	<h2 class="title">{$mem_menu.title}</h2>
	{if condition="isset($mem_menu['children'])"}
		<ul class="sline">
		{foreach name="mem_menu['children']" item="vo" }   
			<li>
				<a href="{$Request.root.true}/{$vo.url}">{$vo.title}</a>
			</li>
		{/foreach}
		</ul>
	{/if}
{/volist}
</div>
<script src="__PUBLIC__/js/jquery/lavalamp/jquery.lavalamp.min.js"></script>
<script>
$(function(){
	//边栏菜单的伸缩效果
	$("#mem_menu h2").click(function(){
		var sidebar_dd = $(this).next("ul");
		if(!sidebar_dd.is(":animated")){
			$(this).toggleClass("open");
			sidebar_dd.slideToggle("slow");	
		}	
	});	
	
	//边栏菜单选中效果	
	var crumbs_name='{$breadcrumb}';
	$(".sline li a").each(function(){			
		var href_name=$.trim($(this).text());	
		if(href_name==crumbs_name){				
			 $(this).addClass('current');		 	 
		}
	});	 	
	
	//面包屑导航下划线滑动效果
	if($('#top-tag')){
		
		$('#top-tag').lavalamp({
			easing: 'easeOutBack'
		});	
		
		var v =$('#top-tag li.on').index();
		
		var a = $('#top-tag').children('.lavalamp-item').eq(parseFloat(v)-1);		
		$('#top-tag').data('lavalampActive',a).lavalamp('update');	
	}
});	

</script>